< previous page page_712 next page >

Page 712
Listing 18.13. continued
        strMsg = strMsg & "LockType=" & aryLockType(rdoQry.LockType) & vbCrLf
        strMsg = strMsg & "MaxRows=" & CStr(rdoQry.MaxRows) & vbCrLf
        strMsg = strMsg & "Name=" & rdoQry.Name & vbCrLf
        strMsg = strMsg & "Prepared=" & rdoQry.Prepared & vbCrLf
        strMsg = strMsg & "QueryTimeOut=" & CStr(rdoQry.QueryTimeout) & vbCrLf
        strMsg = strMsg & "RowsAffeced=" & CStr(rdoQry.RowsAffected) & vbCrLf
        strMsg = strMsg & "RowsetSize=" & CStr(rdoQry.RowsetSize) & vbCrLf
        strMsg = strMsg & "SQL=" & rdoQry.SQL & vbCrLf
        strMsg = strMsg & "StillExecuting=" & CStr(rdoQry.StillExecuting) &
arrow.gifvbCrLf
        strMsg = strMsg & "Type=" & aryType(rdoQry.Type) & vbCrLf
        '
        MsgBox strMsg, vbInformation, "rdoQuery"
        strMsg = ""
        '
    Next
    '
    rdoNewQry.Close
    rdoCon.Close
    rdoEnv.Close
    Set rdoQry = Nothing
    Set rdoNewQry = Nothing
    Set rdoCon = Nothing
    Set rdoEnv = Nothing
    '
End Sub
Notice the use of the OpenResultset method on the rdoQuery object. This is the way to fetch rows from the data source using the rdoQuery object as the base. Save and run the project. After you click the RDO Queries button, you'll see a detailed listing of the properties of the query, as shown in Figure 18.13.
0712-01.jpg
Figure 18.13.
Displaying the rdoQuery properties.

 
< previous page page_712 next page >

If you like this book, buy it!